using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WPCoco.Tasks
{
    public class EaseExponentialInOutFunction : EaseFunction
    {
        public override float Evaluate(float time)
        {
            time *= 2;
            if (time < 1)
                time = 0.5f * (float)Math.Pow(2, 10 * (time - 1));
            else
                time = 0.5f * (float)(-Math.Pow(2, -10 * (time - 1)) + 2);
            return time;
        }
    }
}
